#include<iostream>

using namespace std;

int init = 10; // 已初始化区

int uninit; // 未初始化区

int main(int argc,char *argv[],char *env[])
{

  char*ch1= new char[10];
  char*ch2= new char[10];
  char*ch3= new char[10];
  char*ch4= new char[10];
  char*ch5= new char[10];

  printf("init : %p\n",&init);

  printf("uninit : %p\n",&uninit);

  printf("text : %p\n",main);

  cout<<"--------------"<<endl;

  printf("heap1 : %p\n",ch1);

  printf("heap2 : %p\n",ch2);

  printf("heap3 : %p\n",ch3);

  printf("heap4 : %p\n",ch4);

  printf("heap5 : %p\n",ch5);

  cout<<"--------------"<<endl;

  printf("stack1 : %p\n",&ch1);

  printf("stack2 : %p\n",&ch2);
  
  printf("stack3 : %p\n",&ch3);
  
  printf("stack4 : %p\n",&ch4);
  
  printf("stack5 : %p\n",&ch5);

  cout<<"--------------"<<endl;

  for(int i = 0;i<argc;++i){
    printf("argv[%d] : %p\n",i,argv[i]);
  }

  cout<<"--------------"<<endl;

  for(int i = 0;env[i];++i){
    printf("env[%d] : %p\n",i,env[i]);
  }

  return 0;
}
